package net.csdn.business.common.oauth2.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.domain.SuperEntity;

import java.util.Date;


/**
 * refreshToken信息对象 oauth_refresh_token
 * 
 * @author zhangyl
 * @date 2022-11-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("oauth_refresh_token")
public class OauthRefreshToken extends SuperEntity<OauthRefreshToken>
{
    private static final long serialVersionUID = 1L;

    /** 配置id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 分布式id */
    private String objectId;

    /** tokenId */
    private String tokenId;

    /** 用户名 */
    private String userName;

    /** clientId */
    private String clientId;

    /** 序列化后的token信息 */
    private byte[] token;

    /** 序列化后的授权信息 */
    private byte[] authentication;

}
